#if !defined(AFX_PLAYERSELECTDLG_H__11AA956D_D73C_4B3C_8AB1_AC86F8AE3695__INCLUDED_)
#define AFX_PLAYERSELECTDLG_H__11AA956D_D73C_4B3C_8AB1_AC86F8AE3695__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PlayerSelectDlg.h : header file
//
#include "MutiTreeCtrl.h"
//#include "XTreeCtrl.h"
#include "main.h"
#include "XAlarmRecordTreeCtrl.h"
#include "Msg.h"
/////////////////////////////////////////////////////////////////////////////
// CPlayerSelectDlg dialog

class CPlayerSelectDlg : public CDialog
{
// Construction
public:
	void AddItem(LPSTR pszName,int nDevType,int nDevID);
	CPlayerSelectDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CPlayerSelectDlg();   // standard constructor
//	CTreeCtrl *m_treeFrom;
	void InitTree();
	bool GetSelectedPath();
	void GetSelectedItem();
	void TravelChild(HTREEITEM hItem);
	CString	m_strSelectType;
	CString m_strSelectedDev;
	CString m_strSqlWhereSelDev;
	int		m_nID;
	int		m_nItemType;
//	int		*m_pSelServerID;
	int		m_nSelNum;
	int		m_nItemCount;

	CBrush m_brush;
	STRUCTAlmRecDev *m_pstuAlmRecDev;
	int		m_nSockListCount;
	bool	m_bRemoteHost;

// Dialog Data
	//{{AFX_DATA(CPlayerSelectDlg)
	enum { IDD = IDD_PLAYER_SELECT_DLG };
	CXAlarmRecordTreeCtrl	m_treeFrom;
	CMutiTreeCtrl	m_MutiTree;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPlayerSelectDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HTREEITEM CopyData_tree2tree(CTreeCtrl *treeFrom,CTreeCtrl *treeTo,HTREEITEM itemFrom=TVI_ROOT,HTREEITEM itemTo=TVI_ROOT);
	HTREEITEM CopyData_tree2tree_Muti(CTreeCtrl *treeFrom,CTreeCtrl *treeTo,HTREEITEM itemFrom=TVI_ROOT,HTREEITEM itemTo=TVI_ROOT);
	HTREEITEM m_hRootItem;
	CImageList m_imgState;
	// Generated message map functions
	//{{AFX_MSG(CPlayerSelectDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnDestroy();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PLAYERSELECTDLG_H__11AA956D_D73C_4B3C_8AB1_AC86F8AE3695__INCLUDED_)
